package cn.sunline.dreamvalue.dao;

import cn.sunline.dreamvalue.entity.CustDreamValFlow;
import org.apache.ibatis.annotations.Param;

import java.util.Map;
/**
  * @title: DreamValueDao
  * @projectName dream-value
  * @description: 梦想相关操作dao
  * @author 11292
  * @date 2020/5/8 18:38
*/
public interface DreamValueDao {
    //查询梦想值
    public Integer queryDreamValue(@Param("suffix") Integer suffix,@Param("dreamValueNo") String dreamValueNo,@Param("type") String type);
    //根据交易流水号查询梦想流水是否存在
    Integer queryDetailIsExistByTransNo(@Param("suffix")Integer tableSuffix, @Param("transNo")String transNo,@Param("opType") String opType,@Param("type")String type);
    //修改梦想值
    void updateDreamValue(@Param("suffix")Integer suffix, @Param("dreamValue") Integer dreamValue,@Param("type") String type,@Param("deramValueNo")String deramValueNo);
    //修改梦想值余额
    void updateDreamValueBalance(@Param("suffix")Integer suffix, @Param("dreamValue")Integer dreamValue, @Param("deramValueNo")String dreamValueNo);
    //插入梦想值流水
    void insertDreamValueFlow(CustDreamValFlow custDreamValFlow);
}
